package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.OrganizersMapper;
import com.healthy.education.domain.Organizers;
import com.healthy.education.service.IOrganizersService;

/**
 * 活动组织者Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class OrganizersServiceImpl implements IOrganizersService 
{
    @Autowired
    private OrganizersMapper organizersMapper;

    /**
     * 查询活动组织者
     * 
     * @param organizerId 活动组织者主键
     * @return 活动组织者
     */
    @Override
    public Organizers selectOrganizersByOrganizerId(Long organizerId)
    {
        return organizersMapper.selectOrganizersByOrganizerId(organizerId);
    }

    /**
     * 查询活动组织者列表
     * 
     * @param organizers 活动组织者
     * @return 活动组织者
     */
    @Override
    public List<Organizers> selectOrganizersList(Organizers organizers)
    {
        return organizersMapper.selectOrganizersList(organizers);
    }

    /**
     * 新增活动组织者
     * 
     * @param organizers 活动组织者
     * @return 结果
     */
    @Override
    public int insertOrganizers(Organizers organizers)
    {
        return organizersMapper.insertOrganizers(organizers);
    }

    /**
     * 修改活动组织者
     * 
     * @param organizers 活动组织者
     * @return 结果
     */
    @Override
    public int updateOrganizers(Organizers organizers)
    {
        return organizersMapper.updateOrganizers(organizers);
    }

    /**
     * 批量删除活动组织者
     * 
     * @param organizerIds 需要删除的活动组织者主键
     * @return 结果
     */
    @Override
    public int deleteOrganizersByOrganizerIds(Long[] organizerIds)
    {
        return organizersMapper.deleteOrganizersByOrganizerIds(organizerIds);
    }

    /**
     * 删除活动组织者信息
     * 
     * @param organizerId 活动组织者主键
     * @return 结果
     */
    @Override
    public int deleteOrganizersByOrganizerId(Long organizerId)
    {
        return organizersMapper.deleteOrganizersByOrganizerId(organizerId);
    }
}
